package com.ktgj.other.common;

import com.ktgj.other.domain.common.*;

import java.util.Map;

public interface RentCar {
    /**
     * 价格信息查询
     * @param request
     * @return
     */
    public DayPriceResponse getDayPrice(DayPriceRequest request);

    /**
     * 下单接口
     * @param request
     * @return
     */
    public CreateOrderResponse createOrder(CreateOrderRequest request);

    /**
     * 取消金额
     * @param request
     * @return
     */
    public OrderCancelFeeResponse orderCancelFee(OrderCancelFeeRequest request) throws Exception;

    /**
     * 订单取消
     * @param request
     * @return
     */
    public CancelOrderResponse cancelOrderConfirm(CancelOrderConfirmRequest request);

    /**
     * 订单查询
     * @param request
     * @return
     */
    public OrderDetailResponse orderDetail(OrderDetailRequest request) throws Exception;

    /**
     * 订单实时位置
     * @param request
     * @return
     */
    public OrderPositionResponse orderPosition(OrderPositionRequest request) throws Exception;

    /**
     * 根据地址获取经纬度
     * @param address
     * @return
     */
    public Map<String, Object> getLatAndLngByAddress(String address);
}
